package com.hky.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hky.springbootinit.common.BaseResponse;
import com.hky.springbootinit.model.dto.notification.NotificationAddRequest;
import com.hky.springbootinit.model.dto.notification.NotificationQueryRequest;
import com.hky.springbootinit.model.entity.Notification;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hky.yunyuapicommon.model.entity.User;
import com.hky.yunyuapicommon.model.vo.NotificationVO;
import com.hky.yunyuapicommon.model.vo.UserVO;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author HKY
* @description 针对表【notification】的数据库操作Service
* @createDate 2024-08-18 09:10:11
*/
public interface NotificationService extends IService<Notification> {

    /**
     * 校验
     *
     * @param notification
     * @param domains
     * @param add
     */
    void validNotification(Notification notification, List<String> domains, boolean add);


    /**
     * 获取查询构造器
     * @param notificationQueryRequest
     * @return
     */
    QueryWrapper<Notification> getQueryWrapper(NotificationQueryRequest notificationQueryRequest);


    /**
     * 获取脱敏的公告信息
     *
     * @param notification
     * @return
     */
    NotificationVO getNotificationVO(Notification notification);

}
